﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace projectOklahoma
{
    class configManager
    {
        public System.Collections.ArrayList getLatestConnections()
        {
            // get the list of all known used connections
            // from connections.xml

            System.Collections.Specialized.StringCollection lastconn = Properties.Settings.Default.ConnList;
            System.Collections.ArrayList al=new System.Collections.ArrayList();
            foreach (var item in lastconn)
            {
                foreach (var par in item.Split(','))
                {
                    al.Add(par);
                }
            }

            return al;
        }
    
    }
}
